﻿using HomeCloudStorageSystem.Models;

namespace HomeCloudStorageSystem.Services
{
    public interface IFileInfosRepository
    {
        IEnumerable<FileInfos> GetFileInfos(string? keyword);
        FileInfos GetFileInfosById(int id);
        byte[] GetFileById(string path);
        IEnumerable<FileInfos> GetFileInfosByDirectory(int directoryId);
        void AddFileInfos(IEnumerable<IFormFile> files,int creator, string? describe, int? fileDirectoryId, out Dictionary<string, string> addFileMessage);
        void RemoveFileInfo(FileInfos fileInfo);
        bool Save();
    }
}
